
{% extends 'learning_logs/base.html' %}
{% block page_header %}
    <h1>主题</h1>
{% endblock page_header %}

{% block content %}

<ul>
    {% for topic in topics %}
    <div class="card mb-3">
        <h3><a href="{% url 'learning_logs:topic' topic.id %}">{{topic}}...</a></h3>
        <div class="card-body">
            <a class="btn btn-danger btn-xs" href="/topics_delete2?nid={{ topic.id }}" style="font-size: 10px">删除</a>
        </div>
    </div>
    {% empty %}
    <li><h3>还没有添加任何主题.</h3></li>
    {% endfor %}
</ul>

<h4><a href="{% url 'learning_logs:new_topic' %}">添加新主题</a></h4>

{% endblock content %}

